bin_PROGRAMS = time
info_TEXINFOS = time.texi
time_SOURCES = time.c resuse.c version.c \
	getpagesize.h resuse.h port.h
EXTRA_DIST = texinfo.tex

DISTCLEANFILES = stamp-v version.c
version.c: stamp-v
stamp-v: Makefile
	rm -f t-version.c
	echo 'const char *version_string = "'GNU @PACKAGE@ @VERSION@'";' \
		> t-version.c
	if cmp -s version.c t-version.c; then	\
	  rm t-version.c;			\
	else					\
	  mv t-version.c version.c;		\
	fi
	echo timestamp > $@
